<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			//debugger;
			// var a=12,b=13,c=14;
			// function fn(a){
			//    console.log(a,b,c); 
			//    var b=c=a=20;
			//    console.log(a,b,c);
			// }
			// fn(a);
			// //console.dir(fn);
			// console.log(a,b,c);
			
			var ary=[12,13];
			function fn(ary){
			   console.log(ary);
			   ary[0]=100;
			   ary=[100];
			   ary[0]=0;
			   console.log(ary);
			}
			fn(ary);
			console.log(ary);
		</script>
	</body>
</html>
